<%@ page import="com.zjitc.model.Cart" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" isELIgnored="false" %>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <title>个人信息</title>
  <meta name="renderer" content="webkit">
  <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
  <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
  <meta name="apple-mobile-web-app-status-bar-style" content="black">
  <meta name="apple-mobile-web-app-capable" content="yes">
  <meta name="format-detection" content="telephone=no">
  <link rel="stylesheet" type="text/css" href="common/layui/css/layui.css" media="all">
  <link rel="stylesheet" type="text/css" href="common/bootstrap/css/bootstrap.css" media="all">
  <link rel="stylesheet" type="text/css" href="common/global.css" media="all">
  <link rel="stylesheet" type="text/css" href="css/personal.css" media="all">
</head>
<body>
<section class="layui-larry-box">
  <div class="larry-personal">
    <div class="layui-tab">
      <blockquote class="layui-elem-quote news_search">

        <div class="layui-inline">
          <div class="layui-input-inline">
            <input value="" placeholder="请输入关键字" class="layui-input search_input" type="text">
          </div>
          <a href="/manage/findByUsername.do" class="layui-btn search_btn">查询</a>
        </div>
      </blockquote>

      <!-- 操作日志 -->
      <div class="layui-form news_list">
        <table class="layui-table">
          <colgroup>
            <col width="50">
            <col>
            <col width="9%">
            <col width="9%">
            <col width="9%">
            <col width="9%">
            <col width="9%">
            <col width="15%">
          </colgroup>
          <thead>

          <tr>
            <th style="width: 144px">订单序号</th>
            <th>订单编号</th>
            <th>购买人地址</th>
            <th>购买人</th>
            <th>发货状态</th>
            <th>猫咪编号</th>
            <th>发货时间</th>
          </tr>
          </thead>
          <tbody class="news_content">
          <c:forEach var="c" items="${allOrderList}" varStatus="status">
            <tr>
              <td>${c.cartid}</td>
              <td>${c.uuid}</td>
              <td>${c.address}</td>
              <td>${c.username}</td>
              <td>
                <c:choose>
                  <c:when test="${c.state=='未发货'}">
                    <a href="/manage/changeState.do?uuid=${c.uuid}">点击发货</a>
                  </c:when>
                  <c:otherwise>
                    <span>已发货</span>
                  </c:otherwise>
                </c:choose>
              </td>
              <td>${c.catid}</td>
              <td>${c.time}</td>
            </tr>
          </c:forEach>
          <%--<tr>
            <td><input name="checked" lay-skin="primary" lay-filter="choose" type="checkbox">
              <div class="layui-unselect layui-form-checkbox" lay-skin="primary"><i class="layui-icon"></i></div>
            </td>
            <td align="left">自定义的模块名称可以包含/吗</td>
            <td>请叫我马哥</td>
            <td style="color:#f00">待审核</td>
            <td>开放浏览</td>
            <td><input name="show" lay-skin="switch" lay-text="是|否" lay-filter="isShow" checked="" type="checkbox">
              <div class="layui-unselect layui-form-switch layui-form-onswitch" lay-skin="_switch"><em>是</em><i></i></div>
            </td>
            <td>2017-04-14</td>
            <td>
              <a class="layui-btn layui-btn-mini news_edit"><i class="iconfont icon-edit"></i> 编辑</a>
              <a class="layui-btn layui-btn-normal layui-btn-mini news_collect"><i class="layui-icon"></i> 收藏</a>
              <a class="layui-btn layui-btn-danger layui-btn-mini news_del" data-id="2"><i class="layui-icon"></i> 删除</a>
            </td>
          </tr>
          <tr>
            <td><input name="checked" lay-skin="primary" lay-filter="choose" type="checkbox">
              <div class="layui-unselect layui-form-checkbox" lay-skin="primary"><i class="layui-icon"></i></div>
            </td>
            <td align="left">layui.tree如何ajax加载二级菜单</td>
            <td>admin</td>
            <td>审核通过</td>
            <td>开放浏览</td>
            <td><input name="show" lay-skin="switch" lay-text="是|否" lay-filter="isShow" checked="" type="checkbox">
              <div class="layui-unselect layui-form-switch layui-form-onswitch" lay-skin="_switch"><em>是</em><i></i></div>
            </td>
            <td>2017-04-14</td>
            <td>
              <a class="layui-btn layui-btn-mini news_edit"><i class="iconfont icon-edit"></i> 编辑</a>
              <a class="layui-btn layui-btn-normal layui-btn-mini news_collect"><i class="layui-icon"></i> 收藏</a>
              <a class="layui-btn layui-btn-danger layui-btn-mini news_del" data-id="3"><i class="layui-icon"></i> 删除</a>
            </td>
          </tr>
          <tr>
            <td><input name="checked" lay-skin="primary" lay-filter="choose" type="checkbox">
              <div class="layui-unselect layui-form-checkbox" lay-skin="primary"><i class="layui-icon"></i></div>
            </td>
            <td align="left">layui.upload如何带参数？像jq的data:{}那样</td>
            <td>admin</td>
            <td>审核通过</td>
            <td>开放浏览</td>
            <td><input name="show" lay-skin="switch" lay-text="是|否" lay-filter="isShow" checked="" type="checkbox">
              <div class="layui-unselect layui-form-switch layui-form-onswitch" lay-skin="_switch"><em>是</em><i></i></div>
            </td>
            <td>2017-04-14</td>
            <td>
              <a class="layui-btn layui-btn-mini news_edit"><i class="iconfont icon-edit"></i> 编辑</a>
              <a class="layui-btn layui-btn-normal layui-btn-mini news_collect"><i class="layui-icon"></i> 收藏</a>
              <a class="layui-btn layui-btn-danger layui-btn-mini news_del" data-id="4"><i class="layui-icon"></i> 删除</a>
            </td>
          </tr>
          <tr>
            <td><input name="checked" lay-skin="primary" lay-filter="choose" type="checkbox">
              <div class="layui-unselect layui-form-checkbox" lay-skin="primary"><i class="layui-icon"></i></div>
            </td>
            <td align="left">表单元素长度应该怎么调整才美观</td>
            <td>请叫我马哥</td>
            <td style="color:#f00">待审核</td>
            <td>开放浏览</td>
            <td><input name="show" lay-skin="switch" lay-text="是|否" lay-filter="isShow" checked="" type="checkbox">
              <div class="layui-unselect layui-form-switch layui-form-onswitch" lay-skin="_switch"><em>是</em><i></i></div>
            </td>
            <td>2017-04-14</td>
            <td>
              <a class="layui-btn layui-btn-mini news_edit"><i class="iconfont icon-edit"></i> 编辑</a>
              <a class="layui-btn layui-btn-normal layui-btn-mini news_collect"><i class="layui-icon"></i> 收藏</a>
              <a class="layui-btn layui-btn-danger layui-btn-mini news_del" data-id="5"><i class="layui-icon"></i> 删除</a>
            </td>
          </tr>
          <tr>
            <td><input name="checked" lay-skin="primary" lay-filter="choose" type="checkbox">
              <div class="layui-unselect layui-form-checkbox" lay-skin="primary"><i class="layui-icon"></i></div>
            </td>
            <td align="left">layui 利用ajax冲获取到json 数据后 怎样进行渲染</td>
            <td>admin</td>
            <td>审核通过</td>
            <td>开放浏览</td>
            <td><input name="show" lay-skin="switch" lay-text="是|否" lay-filter="isShow" checked="" type="checkbox">
              <div class="layui-unselect layui-form-switch layui-form-onswitch" lay-skin="_switch"><em>是</em><i></i></div>
            </td>
            <td>2017-04-14</td>
            <td>
              <a class="layui-btn layui-btn-mini news_edit"><i class="iconfont icon-edit"></i> 编辑</a>
              <a class="layui-btn layui-btn-normal layui-btn-mini news_collect"><i class="layui-icon"></i> 收藏</a>
              <a class="layui-btn layui-btn-danger layui-btn-mini news_del" data-id="6"><i class="layui-icon"></i> 删除</a>
            </td>
          </tr>
          <tr>
            <td><input name="checked" lay-skin="primary" lay-filter="choose" type="checkbox">
              <div class="layui-unselect layui-form-checkbox" lay-skin="primary"><i class="layui-icon"></i></div>
            </td>
            <td align="left">微信页面中富文本编辑器LayEdit无法使用</td>
            <td>请叫我马哥</td>
            <td style="color:#f00">待审核</td>
            <td>开放浏览</td>
            <td><input name="show" lay-skin="switch" lay-text="是|否" lay-filter="isShow" type="checkbox">
              <div class="layui-unselect layui-form-switch" lay-skin="_switch"><em>否</em><i></i></div>
            </td>
            <td>2017-04-14</td>
            <td>
              <a class="layui-btn layui-btn-mini news_edit"><i class="iconfont icon-edit"></i> 编辑</a>
              <a class="layui-btn layui-btn-normal layui-btn-mini news_collect"><i class="layui-icon"></i> 收藏</a>
              <a class="layui-btn layui-btn-danger layui-btn-mini news_del" data-id="7"><i class="layui-icon"></i> 删除</a>
            </td>
          </tr>
          <tr>
            <td><input name="checked" lay-skin="primary" lay-filter="choose" type="checkbox">
              <div class="layui-unselect layui-form-checkbox" lay-skin="primary"><i class="layui-icon"></i></div>
            </td>
            <td align="left">layui 什么时候发布新的版本呀</td>
            <td>请叫我马哥</td>
            <td>审核通过</td>
            <td>开放浏览</td>
            <td><input name="show" lay-skin="switch" lay-text="是|否" lay-filter="isShow" checked="" type="checkbox">
              <div class="layui-unselect layui-form-switch layui-form-onswitch" lay-skin="_switch"><em>是</em><i></i></div>
            </td>
            <td>2017-04-14</td>
            <td>
              <a class="layui-btn layui-btn-mini news_edit"><i class="iconfont icon-edit"></i> 编辑</a>
              <a class="layui-btn layui-btn-normal layui-btn-mini news_collect"><i class="layui-icon"></i> 收藏</a>
              <a class="layui-btn layui-btn-danger layui-btn-mini news_del" data-id="8"><i class="layui-icon"></i> 删除</a>
            </td>
          </tr>
          <tr>
            <td><input name="checked" lay-skin="primary" lay-filter="choose" type="checkbox">
              <div class="layui-unselect layui-form-checkbox" lay-skin="primary"><i class="layui-icon"></i></div>
            </td>
            <td align="left">layui上传组件不支持上传前的图片预览嘛？</td>
            <td>admin</td>
            <td>审核通过</td>
            <td>开放浏览</td>
            <td><input name="show" lay-skin="switch" lay-text="是|否" lay-filter="isShow" checked="" type="checkbox">
              <div class="layui-unselect layui-form-switch layui-form-onswitch" lay-skin="_switch"><em>是</em><i></i></div>
            </td>
            <td>2017-04-14</td>
            <td>
              <a class="layui-btn layui-btn-mini news_edit"><i class="iconfont icon-edit"></i> 编辑</a>
              <a class="layui-btn layui-btn-normal layui-btn-mini news_collect"><i class="layui-icon"></i> 收藏</a>
              <a class="layui-btn layui-btn-danger layui-btn-mini news_del" data-id="9"><i class="layui-icon"></i> 删除</a>
            </td>
          </tr>
          <tr>
            <td><input name="checked" lay-skin="primary" lay-filter="choose" type="checkbox">
              <div class="layui-unselect layui-form-checkbox" lay-skin="primary"><i class="layui-icon"></i></div>
            </td>
            <td align="left">关于layer.confirm点击无法关闭的疑惑</td>
            <td>admin</td>
            <td style="color:#f00">待审核</td>
            <td>开放浏览</td>
            <td><input name="show" lay-skin="switch" lay-text="是|否" lay-filter="isShow" checked="" type="checkbox">
              <div class="layui-unselect layui-form-switch layui-form-onswitch" lay-skin="_switch"><em>是</em><i></i></div>
            </td>
            <td>2017-04-14</td>
            <td>
              <a class="layui-btn layui-btn-mini news_edit"><i class="iconfont icon-edit"></i> 编辑</a>
              <a class="layui-btn layui-btn-normal layui-btn-mini news_collect"><i class="layui-icon"></i> 收藏</a>
              <a class="layui-btn layui-btn-danger layui-btn-mini news_del" data-id="10"><i class="layui-icon"></i> 删除</a>
            </td>
          </tr>
          <tr>
            <td><input name="checked" lay-skin="primary" lay-filter="choose" type="checkbox">
              <div class="layui-unselect layui-form-checkbox" lay-skin="primary"><i class="layui-icon"></i></div>
            </td>
            <td align="left">layui form表单提交成功如何拿取返回值</td>
            <td>请叫我马哥</td>
            <td>审核通过</td>
            <td>开放浏览</td>
            <td><input name="show" lay-skin="switch" lay-text="是|否" lay-filter="isShow" checked="" type="checkbox">
              <div class="layui-unselect layui-form-switch layui-form-onswitch" lay-skin="_switch"><em>是</em><i></i></div>
            </td>
            <td>2017-04-14</td>
            <td>
              <a class="layui-btn layui-btn-mini news_edit"><i class="iconfont icon-edit"></i> 编辑</a>
              <a class="layui-btn layui-btn-normal layui-btn-mini news_collect"><i class="layui-icon"></i> 收藏</a>
              <a class="layui-btn layui-btn-danger layui-btn-mini news_del" data-id="11"><i class="layui-icon"></i> 删除</a>
            </td>
          </tr>
          <tr>
            <td><input name="checked" lay-skin="primary" lay-filter="choose" type="checkbox">
              <div class="layui-unselect layui-form-checkbox" lay-skin="primary"><i class="layui-icon"></i></div>
            </td>
            <td align="left">layer mobileV2.0 yes回调函数无法用？</td>
            <td>请叫我马哥</td>
            <td style="color:#f00">待审核</td>
            <td>开放浏览</td>
            <td><input name="show" lay-skin="switch" lay-text="是|否" lay-filter="isShow" checked="" type="checkbox">
              <div class="layui-unselect layui-form-switch layui-form-onswitch" lay-skin="_switch"><em>是</em><i></i></div>
            </td>
            <td>2017-04-14</td>
            <td>
              <a class="layui-btn layui-btn-mini news_edit"><i class="iconfont icon-edit"></i> 编辑</a>
              <a class="layui-btn layui-btn-normal layui-btn-mini news_collect"><i class="layui-icon"></i> 收藏</a>
              <a class="layui-btn layui-btn-danger layui-btn-mini news_del" data-id="12"><i class="layui-icon"></i> 删除</a>
            </td>
          </tr>
          <tr>
            <td><input name="checked" lay-skin="primary" lay-filter="choose" type="checkbox">
              <div class="layui-unselect layui-form-checkbox" lay-skin="primary"><i class="layui-icon"></i></div>
            </td>
            <td align="left">关于layer中自带的btn回调弹层页面的内容</td>
            <td>admin</td>
            <td style="color:#f00">待审核</td>
            <td>开放浏览</td>
            <td><input name="show" lay-skin="switch" lay-text="是|否" lay-filter="isShow" type="checkbox">
              <div class="layui-unselect layui-form-switch" lay-skin="_switch"><em>否</em><i></i></div>
            </td>
            <td>2017-04-14</td>
            <td>
              <a class="layui-btn layui-btn-mini news_edit"><i class="iconfont icon-edit"></i> 编辑</a>
              <a class="layui-btn layui-btn-normal layui-btn-mini news_collect"><i class="layui-icon"></i> 收藏</a>
              <a class="layui-btn layui-btn-danger layui-btn-mini news_del" data-id="13"><i class="layui-icon"></i> 删除</a>
            </td>
          </tr>--%>
          </tbody>
        </table>
        <div class="larry-table-page clearfix">
          <a href="javascript:;" class="layui-btn layui-btn-small"><i
                  class="iconfont icon-shanchu1"></i>删除</a>
          <div id="page" class="page"></div>
        </div>
      </div>
      <!-- 登录日志 -->
      <div class="layui-tab-item layui-field-box">
        <table class="layui-table table-hover" lay-even="" lay-skin="nob">
          <thead>
          <tr>
            <th><input type="checkbox" id="selected-all"></th>
            <th>ID</th>
            <th>管理员账号</th>
            <th>状态</th>
            <th>最后登录时间</th>
            <th>上次登录IP</th>
            <th>登录IP</th>
            <th>IP所在位置</th>
          </tr>
          </thead>
          <tbody>
          <tr>
            <td><input type="checkbox"></td>
            <td>110</td>
            <td>admin</td>
            <td>后台登录成功</td>
            <td>2016-12-19 14:26:03</td>
            <td>127.0.0.1</td>
            <td>127.0.0.1</td>
            <td>Unknown</td>
          </tr>
          </tbody>
        </table>
        <div class="larry-table-page clearfix">
          <a href="javascript:;" class="layui-btn layui-btn-small"><i
                  class="iconfont icon-shanchu1"></i>删除</a>
          <div id="page2" class="page"></div>
        </div>
      </div>
    </div>
  </div>

</section>
<script type="text/javascript" src="common/layui/layui.js"></script>
<script type="text/javascript" src="js/newslist.js"></script>
<script type="text/javascript">
  layui.use(['jquery', 'layer', 'element', 'laypage'], function () {
    window.jQuery = window.$ = layui.jquery;
    window.layer = layui.layer;
    var element = layui.element(),
        laypage = layui.laypage;

    laypage({
      cont: 'page',
      pages: 10 //总页数
      ,
      groups: 5 //连续显示分页数
      ,
      jump: function (obj, first) {
        //得到了当前页，用于向服务端请求对应数据
        var curr = obj.curr;
        if (!first) {
          //layer.msg('第 '+ obj.curr +' 页');
        }
      }
    });

    laypage({
      cont: 'page2',
      pages: 10 //总页数
      ,
      groups: 5 //连续显示分页数
      ,
      jump: function (obj, first) {
        //得到了当前页，用于向服务端请求对应数据
        var curr = obj.curr;
        if (!first) {
          //layer.msg('第 '+ obj.curr +' 页');
        }
      }
    });
  });
</script>
</body>
</html>